﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Demo.Models
{
    /// <summary>
    /// Class WeChat.
    /// </summary>
    [Description("公众号信息")]
    public  class WeChat :BaseEntity<long>
    {

        /// <summary>
        /// Gets or sets the configurl.
        /// </summary>
        /// <value>The configurl.</value>
        public string ConfigUrl { get; set; }

        /// <summary>
        /// 公众号名字
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }

        /// <summary>
        /// 原始Id，在处理消息的时候使用--
        /// </summary>
        /// <value>The original identifier.</value>
        public string OriginalId { get; set; }

        /// <summary>
        /// 公众号的号
        /// </summary>
        /// <value>The subscription.</value>
        public string Subscription { get; set; }

        /// <summary>
        /// 微信公众号后台的Appid
        /// </summary>
        /// <value>The application identifier.</value>
        public string AppId { get; set; }
        /// <summary>
        /// 微信公众号后台的AppSecret
        /// </summary>
        /// <value>The application secret.</value>
        public string AppSecret { get; set; }

        /// <summary>
        /// Token
        /// </summary>
        /// <value>The token.</value>
        public string Token { get; set; }

        /// <summary>
        /// 和微信服务器通信时加密的key
        /// </summary>
        /// <value>The aes key.</value>
        public string AESKey { get; set; }

        /// <summary>
        /// 公众号的二维码
        /// </summary>
        /// <value>The qr code.</value>
        public string QrCode { get; set; }
        /// <summary>
        /// 微信支付中的商户号
        /// </summary>
        /// <value>The MCH identifier.</value>
        public string MchId { get; set; }
        /// <summary>
        /// 微信支付中的Secret
        /// </summary>
        /// <value>The secret.</value>
        public string Secret { get; set; }
        /// <summary>
        /// 微信支付中的key
        /// </summary>
        /// <value>The key.</value>
        public string SecretKey { get; set; }

        /// <summary>
        /// 微信支付中的回调
        /// </summary>
        /// <value>The tenpay notify.</value>
        public string TenpayNotify { get; set; }

        /// <summary>
        /// Gets or sets the organizer_ identifier.
        /// </summary>
        /// <value>The organizer_ identifier.</value>
        public long Organizer_Id { get; set; }

        /// <summary>
        /// Gets or sets the organizer.
        /// </summary>
        /// <value>The organizer.</value>
        public virtual Organizer Organizer { get; set; }

        /// <summary>
        /// Gets or sets the we chat menus.
        /// </summary>
        /// <value>The we chat menus.</value>
        public virtual ICollection<WeChatMenue> WeChatMenus { get; set; }

        /// <summary>
        /// Gets or sets the we chat menue categorys.
        /// </summary>
        /// <value>The we chat menue categorys.</value>
        public virtual ICollection<WeChatMenueCategory> WeChatMenueCategorys { get; set; }

        /// <summary>
        /// Gets or sets the fan groups.
        /// </summary>
        /// <value>The fan groups.</value>
        public virtual ICollection<FanGroup> FanGroups { get; set; }

        /// <summary>
        /// Gets or sets the fans.
        /// </summary>
        /// <value>The fans.</value>
        public virtual ICollection<Fans> Fans { get; set; }

        /// <summary>
        /// Gets or sets the materials.
        /// </summary>
        /// <value>The materials.</value>
        public virtual ICollection<Material> Materials { get; set; }


        /// <summary>
        /// Gets or sets the image texts.
        /// </summary>
        /// <value>The image texts.</value>
        public virtual ICollection<ImageText> ImageTexts { get; set; }
 
    }
}
